package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcCriterionMapper;
import com.sdry.model.zc.ZcAccessoriesCriterionEntity;
import com.sdry.model.zc.ZcEvaluateCriterionEntity;
import com.sdry.model.zc.ZcGasCriterionEntity;
import com.sdry.model.zc.ZcJzSpotCheckCriterionEntity;
import com.sdry.model.zc.ZcLeakHuntingCriterionEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcSilkCriterionEntity;
import com.sdry.service.zc.ZcCriterionService;

/**
 * 
 * @ClassName:    ZcCriterionServiceImpl   
 * @Description:  质量检测标准
 * @Author:       zc   
 * @CreateDate:   2018年9月25日 上午11:52:52   
 * @Version:      v1.0
 */
@Service
public class ZcCriterionServiceImpl implements ZcCriterionService {

	@Resource
	private ZcCriterionMapper zcCriterionMapper;

	/**
	 * 查找配件检验标准项
	 * @return
	 */
	@Override
	public ZcAccessoriesCriterionEntity selectAccessoriesCriterion() {
		return zcCriterionMapper.selectAccessoriesCriterion();
	}

	/**
	 * 保存配件检测项标准值
	 * @param zcAccessoriesCriterionEntity
	 * @return
	 */
	@Override
	public int insertAccessoriesCriterion(ZcAccessoriesCriterionEntity zcAccessoriesCriterionEntity) {
		return zcCriterionMapper.insertAccessoriesCriterion(zcAccessoriesCriterionEntity);
	}
	/**
	 * 修改配件检测项标准值
	 * @param zcAccessoriesCriterionEntity
	 * @return
	 */
	@Override
	public int editAccessoriesCriterion(ZcAccessoriesCriterionEntity zcAccessoriesCriterionEntity) {
		return zcCriterionMapper.editAccessoriesCriterion(zcAccessoriesCriterionEntity);
	}
	/**
	 * 查找检漏标准项
	 * @return
	 */
	@Override
	public ZcLeakHuntingCriterionEntity selectLeakHuntingCriterion() {
		return zcCriterionMapper.selectLeakHuntingCriterion();
	}
	
	/**
	 * 保存检漏标准值
	 * @param zcLeakHuntingCriterionEntity
	 * @return
	 */
	@Override
	public int insertLeakHuntingCriterion(ZcLeakHuntingCriterionEntity zcLeakHuntingCriterionEntity) {
		return zcCriterionMapper.insertLeakHuntingCriterion(zcLeakHuntingCriterionEntity);
	}
	/**
	 * 修改检漏标准值
	 * @param zcLeakHuntingCriterionEntity
	 * @return
	 */
	@Override
	public int editLeakHuntingCriterion(ZcLeakHuntingCriterionEntity zcLeakHuntingCriterionEntity) {
		return zcCriterionMapper.editLeakHuntingCriterion(zcLeakHuntingCriterionEntity);
	}
	/**
	 * 查找组件评价标准项
	 * @return
	 */
	@Override
	public ZcEvaluateCriterionEntity selectEvaluateCriterion() {
		return zcCriterionMapper.selectEvaluateCriterion();
	}
	
	/**
	 * 保存组件评价标准值
	 * @param zcEvaluateCriterionEntity
	 * @return
	 */
	@Override
	public int insertEvaluateCriterion(ZcEvaluateCriterionEntity zcEvaluateCriterionEntity) {
		return zcCriterionMapper.insertEvaluateCriterion(zcEvaluateCriterionEntity);
	}
	/**
	 * 修改组件评价标准值
	 * @param zcEvaluateCriterionEntity
	 * @return
	 */
	@Override
	public int editEvaluateCriterion(ZcEvaluateCriterionEntity zcEvaluateCriterionEntity) {
		return zcCriterionMapper.editEvaluateCriterion(zcEvaluateCriterionEntity);
	}
	/**
	 * 查找气密检测标准项
	 * @return
	 */
	@Override
	public ZcGasCriterionEntity selectGasCriterion() {
		return zcCriterionMapper.selectGasCriterion();
	}
	
	/**
	 * 保存气密检测标准值
	 * @param zcGasCriterionEntity
	 * @return
	 */
	@Override
	public int insertGasCriterion(ZcGasCriterionEntity zcGasCriterionEntity) {
		return zcCriterionMapper.insertGasCriterion(zcGasCriterionEntity);
	}
	/**
	 * 修改气密检测标准值
	 * @param zcGasCriterionEntity
	 * @return
	 */
	@Override
	public int editGasCriterion(ZcGasCriterionEntity zcGasCriterionEntity) {
		return zcCriterionMapper.editGasCriterion(zcGasCriterionEntity);
	}
	/**
	 * 查找膜丝标准项
	 * @return
	 */
	@Override
	public ZcSilkCriterionEntity selectSilkCriterion() {
		return zcCriterionMapper.selectSilkCriterion();
	}
	
	/**
	 * 保存膜丝标准值
	 * @param zcSilkCriterionEntity
	 * @return
	 */
	@Override
	public int insertSilkCriterion(ZcSilkCriterionEntity zcSilkCriterionEntity) {
		return zcCriterionMapper.insertSilkCriterion(zcSilkCriterionEntity);
	}
	/**
	 * 修改膜丝标准值
	 * @param zcSilkCriterionEntity
	 * @return
	 */
	@Override
	public int editSilkCriterion(ZcSilkCriterionEntity zcSilkCriterionEntity) {
		return zcCriterionMapper.editSilkCriterion(zcSilkCriterionEntity);
	}
	/**
	 * 查找浇铸抽检标准列表
	 * @return
	 */
	@Override
	public List<ZcJzSpotCheckCriterionEntity> selectJzSpotCheckCriterionList(ZcQueryCriteria zcQueryCriteria) {
		return zcCriterionMapper.selectJzSpotCheckCriterionList(zcQueryCriteria);
	}
	/**
	 * 查询浇铸抽检标准列表数量
	 */
	@Override
	public int countJzSpotCheckCriterionList(ZcQueryCriteria zcQueryCriteria) {
		return zcCriterionMapper.countJzSpotCheckCriterionList(zcQueryCriteria);
	}
	/**
	 * 保存浇铸抽检标准
	 */
	@Override
	public int insertJzSpotCheckCriterion(ZcJzSpotCheckCriterionEntity zcJzSpotCheckCriterionEntity) {
		return zcCriterionMapper.insertJzSpotCheckCriterion(zcJzSpotCheckCriterionEntity);
	}
	/**
	 * 删除浇铸抽检标准
	 */
	@Override
	public int delJzSpotCheckCriterionArr(long id) {
		return zcCriterionMapper.delJzSpotCheckCriterionArr(id);
	}
	/**
	 * 修改浇铸抽检标准
	 */
	@Override
	public int editJzSpotCheckCriterion(ZcJzSpotCheckCriterionEntity zcJzSpotCheckCriterionEntity) {
		return zcCriterionMapper.editJzSpotCheckCriterion(zcJzSpotCheckCriterionEntity);
	}
	
}
